package com.yunshang.shoppingmall.service.User.impl;


import com.yunshang.shoppingmall.entity.UserRank;
import com.yunshang.shoppingmall.mapper.UserRankMapper;
import com.yunshang.shoppingmall.service.User.UserRankService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
/*@Transactional*/
@Service("UserRankService")
public class UserRankServiceImpl implements UserRankService {
    @Autowired
    UserRankMapper userRankMapper;

    @Override
    public List<UserRank> selectUserRankList() {
        return userRankMapper.selectUserRankList();
    }

    @Override
    public UserRank selectByPrimaryKey(Integer rankid) {
        return userRankMapper.selectByPrimaryKey(rankid);
    }

    //增加管理员
    @Override
    public int insert(UserRank record) {

        return userRankMapper.insert(record);
    }

    //增加管理员
    @Override
    public int updateByPrimaryKeySelective(UserRank record) {

        return userRankMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int deleteByPrimaryKey(Integer rankId) {
        return userRankMapper.deleteByPrimaryKey(rankId);
    }
}
